package com.example.demoofimagedownloadapp.contract;

import android.graphics.Bitmap;

import com.example.demoofimagedownloadapp.bean.DataBean;
import com.example.demoofimagedownloadapp.presenter.BasePresenter;
import com.example.demoofimagedownloadapp.view.BaseActivity;
import com.example.demoofimagedownloadapp.view.BaseView;

import java.io.IOException;
import java.util.List;

public abstract class MusicWindowContract {
    public interface View extends BaseView<Presenter> {
        void updateMusicList();
        void updateMusicAlbumart(List<DataBean> list, int direction);
        void updateMusicPlayer(long maxProgress, String title, Bitmap bitmap);
        void updateProgress(int progress);
        void showErrorInfo(String info);
    }
    public interface Presenter{
        void startPlayer() throws IOException;
        void pausePlayer() throws InterruptedException;
        void nextSong() throws IOException;
        void previousSong() throws IOException;
        void getSongList(int numInOnePage);
        void setProgress(int progress);
    }
}
